#ifndef ServerSocket_class
#define ServerSocket_class

#include "Socket.h"


class ServerSocket : private Socket
{
public:

    ServerSocket ( int port );
    ServerSocket (){};
    
    virtual ~ServerSocket();

    const ServerSocket& operator << ( const std::string& ) const;
    const ServerSocket& operator >> ( std::string& ) const;
    
    int read ( std::string &) const;
    int write( const std::string &) const;
    void accept ( ServerSocket& );

};

#endif
